﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace UAC.Operation
{
    public class Team
    {
        public int ID { get; set; }
        public int TeamDefID { get; set; }
        public string TargetID { get; set; }
        public string TargetInfo { get; set; }
        public string TargetType { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }

        public Team()
        {

        }

        public Team(DataRow dr)
        {
            this.ID = Convert.ToInt32(dr["id"]);
            this.TeamDefID = Convert.ToInt32(dr["teamdefid"]);
            this.TargetID = dr["targetid"].ToString();
            this.TargetInfo = dr["targetstr"].ToString();
            this.TargetType = dr["targettype"].ToString();
            this.Name = dr["name"].ToString();
            this.Description = dr["description"].ToString();
        }
    }
}
